package com.tarena.lbs.basic.web.mapper;

import com.tarena.lbs.pojo.basic.dos.UserTagsDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserTagMapper {
    @Delete("delete from tarena_lbs_basic.lbs_user_tags where user_id=#{id}")
    void deleteUserTagsByUserId(Integer id);

    void batchInsert(List<UserTagsDO> dos);

    @Select("select tag_id from tarena_lbs_basic.lbs_user_tags where user_id=#{userId}")
    List<Integer> selectTagIdsByUserId(Integer userId);
}
